package com.zhaorui.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@TableName(value = "TitleDownLoad")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TitleDownLoad implements Serializable {
    @ExcelProperty("id")
    @TableId(type = IdType.AUTO)
    private  Integer id;
    /**
     * 活动主题
     */
    @ExcelProperty("活动主题")
    private String activityTopic;

    /**
     * 活动开始时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(locale = "zh",pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelProperty("开始时间")
    private Date starttime;

    /**
     * 活动开始时间2
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(locale = "zh",pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date starttime2;


    /**
     * 活动结束时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(locale = "zh",pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelProperty("结束时间")
    private Date overtime;

    /**
     * 活动类型:1:随机，2.指定....
     */
    @ExcelProperty("类型")
    private Integer activityType;
}
